#Copyright (c) Beijing WanSheng Intelligent Corp. All rights reserved.
#Licensed under the MIT license. See LICENSE file in the project root for full license information.

project(plugin-hello)

if (DEFINED ENV{WA_THREAD_DEMO})
    message("hellworld: WA_THREAD_DEMO is defined")
    add_definitions(-DWA_THREAD_DEMO)
endif()

cmake_minimum_required(VERSION 2.8.12)
if ($ENV{sanitizer} MATCHES yes)
    message("hellworld: Debug build, enable sanitizer")
    add_compile_options(-fsanitize=address)
    add_link_options(-fsanitize=address)
endif()
add_subdirectory(hello_world_service)
add_subdirectory(hello_world_client)
